package com.byit.Test.yield;

/**
 * @ClassName Producer
 * @Description TODO
 * @Author lxp
 * @Date 2018/10/9 0009
 **/
public class Producer extends Thread {
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println("I am Producer : Produced Item " + i);
            Thread.yield();
        }
    }
}
